package com.estar.app.business.mobileLogin.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.jeecgframework.core.common.entity.IdEntity;
import org.jeecgframework.poi.excel.annotation.Excel;

import com.estar.workplace.entity.TmblWorkPlaceEntity;

@Entity
@Table(name = "tmbl_app_user", schema = "")
public class AppUserEntity extends IdEntity implements java.io.Serializable{
	@Excel(name="业务员工号")
	private java.lang.String empCde;
	@Excel(name="业务员登陆密码")
	private java.lang.String empPassWord;
	@Excel(name="业务员姓名")
	private java.lang.String empName;
	@Excel(name="邮箱")
	private java.lang.String email;
	@Excel(name="手机号")
	private java.lang.String phoneNo;
	@Excel(name="是否有效")
	private java.lang.String isAvailable;
	@Excel(name="机构代码")
	private java.lang.String dptCde;
	@Excel(name="机构名称")
	private java.lang.String dptName;
	
	@Excel(name="工作区域")
	private java.lang.String area;
	/*@Excel(name="工作地点")
	private java.lang.String workPlace;
	*/
	private TmblWorkPlaceEntity workPlace;
	
	@Excel(name="普通用户与审核用户标志")
	private String statue;//普通用户_1,审核员_2
	
	@Excel(name="在职标志")
	private String isWork;//在职_1,离职_0
	
	
	@Column(name ="T_ISWORK")
	public String getIsWork() {
		return isWork;
	}
	public void setIsWork(String isWork) {
		this.isWork = isWork;
	}
	@Column(name="T_STATUE")
	public String getStatue() {
		return statue;
	}
	public void setStatue(String statue) {
		this.statue = statue;
	}
	@ManyToOne
	@JoinColumn(name="T_WORK_PLACE")
	public TmblWorkPlaceEntity getWorkPlace() {
		return workPlace;
	}
	public void setWorkPlace(TmblWorkPlaceEntity workPlace) {
		this.workPlace = workPlace;
	}
	
	@Column(name ="T_EMP_CDE")
	public java.lang.String getEmpCde() {
		return empCde;
	}
	public void setEmpCde(java.lang.String empCde) {
		this.empCde = empCde;
	}
	@Column(name ="T_EMP_PASS")
	public java.lang.String getEmpPassWord() {
		return empPassWord;
	}
	public void setEmpPassWord(java.lang.String empPassWord) {
		this.empPassWord = empPassWord;
	}
	@Column(name ="T_EMP_NAME")
	public java.lang.String getEmpName() {
		return empName;
	}
	public void setEmpName(java.lang.String empName) {
		this.empName = empName;
	}
	@Column(name ="T_EMAIL")
	public java.lang.String getEmail() {
		return email;
	}
	public void setEmail(java.lang.String email) {
		this.email = email;
	}
	@Column(name ="T_MOBILE_PHONE")
	public java.lang.String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(java.lang.String phoneNo) {
		this.phoneNo = phoneNo;
	}
	@Column(name ="T_IS_AVAILABLE")
	public java.lang.String getIsAvailable() {
		return isAvailable;
	}
	public void setIsAvailable(java.lang.String isAvailable) {
		this.isAvailable = isAvailable;
	}
	@Column(name ="T_DPT_CODE")
	public java.lang.String getDptCde() {
		return dptCde;
	}
	public void setDptCde(java.lang.String dptCde) {
		this.dptCde = dptCde;
	}
	@Column(name ="T_DPT_NAME")
	public java.lang.String getDptName() {
		return dptName;
	}
	public void setDptName(java.lang.String dptName) {
		this.dptName = dptName;
	}
	/*@Column(name ="T_WORK_PLACE")
	public java.lang.String getWorkPlace() {
		return workPlace;
	}
	public void setWorkPlace(java.lang.String workPlace) {
		this.workPlace = workPlace;
	}*/
	@Column(name ="T_AREA")
	public java.lang.String getArea() {
		return area;
	}
	public void setArea(java.lang.String area) {
		this.area = area;
	}
	
}
